package thinkingJava.chapter14;

public class GenericToyTest {
	public static void main(String[] args) throws Exception {
		Class<FancyToy> ftClass = FancyToy.class;
		FancyToy ft = ftClass.newInstance();
		Class<? super FancyToy> up = ftClass.getSuperclass();
		Object obj = up.newInstance();
		System.out.println(obj.getClass());
	}
}
